package com.yupi.springbootinit.utils;


import com.alibaba.fastjson.JSON;

public class MessageUtils {

    public static String getMessage(boolean isSystemMessage,String fromName,Object message){
        ResultMessage result=new ResultMessage();
        result.setSystem(isSystemMessage);
        result.setSender("0");
        result.setContent("系统消息,用户"+fromName+"下线了");

        return JSON.toJSONString(result);
    }
}
